package net.carmanagement;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

public class DBHelper extends SQLiteOpenHelper {
	public static String DATABASE_NAME = "veiculo";
	public static int DATABASE_VERSION = 1;
	public static String TABLE_VEICULO = "Veiculo";
	
	public DBHelper(Context context) {
		super(context, DATABASE_NAME, null, DATABASE_VERSION);
		
	}

	@Override
	public void onCreate(SQLiteDatabase DB) {
		String sql = "CREATE TABLE Veiculo (_id INTEGER primary key, marca TEXT)";
		DB.execSQL(sql);
	}

	@Override
	public void onUpgrade(SQLiteDatabase arg0, int arg1, int arg2) {
		
		
	}

}
